package com.trs.publish.repository;

import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import com.trs.publish.domain.Role;


@Mapper
public interface RoleRepository {
	
	List<Role> findRoles();

	List<Role> findByRole(Role role);

	void deleteById(long id);

	long save(Role role);

	Role findById(long id);

	void update(Role role);

	Role findByName(String rolename);

	List<Role> findRoleAndPower();

}